﻿using UnityEngine;
using System;

namespace MYSTARFORCE
{
    /// <summary>
    /// 子弹数据
    /// </summary>
    [Serializable]
    public class BulletData : AccessoryObjectData
    {
        /// <summary>
        /// 攻击力
        /// </summary>
        public int Attack
        {
            get
            {
                return m_Attack;
            }
        }
        [SerializeField]
        private int m_Attack = 0;

        /// <summary>
        /// 速度
        /// </summary>
        public float Speed
        {
            get
            {
                return m_Speed;
            }
        }
        [SerializeField]
        private float m_Speed = 0f;

        public BulletData(int entityId, int typeId, int ownerId, CampType ownerCamp, int attack, float speed) : base(entityId, typeId, ownerId, ownerCamp)
        {
            m_Attack = attack;
            m_Speed = speed;
        }
    }
}